s = str(input("Введи число на Английском языке "))
s = s.split()
ban = ['zero', 'one', 'two', 'three', 'four', 'five', 'six',
'seven', 'eight', 'nine' ]
chs = ''
for i in s:
    for j in range(len(ban)):
        if i == ban[j]:
            chs += str(j)
chs = int(chs)
print (int(chs))

pr = []
for i in range(100, 1000):
    count = 0
    for j in range(2,i//2+1):
        if i % j == 0:
            count += 1
    if count == 0:
        pr.append(i)
print(pr)
for i in range(len(pr)):
    if pr[i]<=chs<=pr[i+1]:
        if pr[i+1] - chs >= chs - chs[i]:
            print(pr)
        else:
            print(pr[i+1])